{extend name='common@layout/seller' /}
{block name="left"}{include file='store/left'}{/block}
{block name="breadcrumb"}
<div class="ncsc-path"><i class="icon-desktop"></i>商家管理中心<i class="icon-angle-right"></i>店铺<i class="icon-angle-right"></i>商家简介</div>
{/block}
{block name='content'}
<script src="/old/data/resource/js/jquery.ajaxContent.pack.js?v1.2"></script>
<script src="/old/data/resource/js/jquery-ui/i18n/zh-CN.js?v1.2"></script>
<script src="/old/data/resource/js/common_select.js?v1.2"></script>
<script type="text/javascript" src="/old/data/resource/js/fileupload/jquery.iframe-transport.js?v1.2" charset="utf-8"></script>
<script type="text/javascript" src="/old/data/resource/js/fileupload/jquery.ui.widget.js?v1.2" charset="utf-8"></script>
<script type="text/javascript" src="/old/data/resource/js/fileupload/jquery.fileupload.js?v1.2" charset="utf-8"></script>
<script src="/old/data/resource/js/jquery.poshytip.min.js?v1.2"></script>
<script src="/old/data/resource/js/jquery.mousewheel.js?v1.2"></script>
<script type="text/javascript" src="/old/data/resource/js/jquery.charCount.js?v1.2"></script>
<!--[if lt IE 8]>
  <script src="http://www.aiyuangong.com/data/resource/js/json2.js?v1.2"></script>
<![endif]-->
<script src="/old/shop/resource/js/store_goods_add.step2.js?v1.2"></script>
<link rel="stylesheet" type="text/css" href="/old/data/resource/js/jquery-ui/themes/ui-lightness/jquery.ui.css?v1.2"  />

{include file='store/tab'}
<div class="ncsc-form-default">
    <form method="post"  action="/index.php?s=seller/store/intro" enctype="multipart/form-data" id="my_store_form">
        <dl>
            <dt style="width: 14%;">商家简介：</dt>
            <dd id="ncProductDetails">
                <div class="tabs">
                    <div id="panel-1" class="ui-tabs-panel" jquery1239647486215="4">
                        <textarea id="g_content" name="g_content" style="width:100%;height:480px;visibility:hidden;">{$store.intro}</textarea>
                        <script src="/old/data/resource/kindeditor/kindeditor-min.js" charset="utf-8"></script>
                        <script src="/old/data/resource/kindeditor/lang/zh_CN.js" charset="utf-8"></script>
                        <script>
                            var KE;
                            KindEditor.ready(function (K) {
                                KE = K.create("textarea[name='g_content']", {
                                    items: ['source', '|', 'fullscreen', 'undo', 'redo', 'print', 'cut', 'copy', 'paste',
                                        'plainpaste', 'wordpaste', '|', 'justifyleft', 'justifycenter', 'justifyright',
                                        'justifyfull', 'insertorderedlist', 'insertunorderedlist', 'indent', 'outdent', 'subscript',
                                        'superscript', '|', 'selectall', 'clearhtml', 'quickformat', '|',
                                        'formatblock', 'fontname', 'fontsize', '|', 'forecolor', 'hilitecolor', 'bold',
                                        'italic', 'underline', 'strikethrough', 'lineheight', 'removeformat', '|', 'table', 'hr', 'emoticons', 'link', 'unlink', '|', 'about'],
                                    cssPath: "/old/data/resource/kindeditor/themes/default/default.css",
                                    allowImageUpload: false,
                                    allowFlashUpload: false,
                                    allowMediaUpload: false,
                                    allowFileManager: false,
                                    syncType: "form",
                                    afterCreate: function () {
                                        var self = this;
                                        self.sync();
                                    },
                                    afterChange: function () {
                                        var self = this;
                                        self.sync();
                                    },
                                    afterBlur: function () {
                                        var self = this;
                                        self.sync();
                                    }
                                });
                                KE.appendHtml = function (id, val) {
                                    this.html(this.html() + val);
                                    if (this.isCreated) {
                                        var cmd = this.cmd;
                                        cmd.range.selectNodeContents(cmd.doc.body).collapse(false);
                                        cmd.select();
                                    }
                                    return this;
                                }
                            });
                        </script>
                        <div class="hr8">  
                            <div class="ncsc-upload-btn"> <a href="javascript:void(0);"><span>
                                        <input type="file" hidefocus="true" size="1" class="input-file" name="goods_image" id="add_album" multiple="multiple">
                                    </span>
                                    <p><i class="icon-upload-alt" data_type="0" nctype="add_album_i"></i>图片上传</p>
                                </a> </div>
                            <a class="ncsc-btn mt5" nctype="show_desc" href="{:url('seller/album/pic_list',['item'=>des])}"><i class="icon-picture"></i>打开相册</a> <a href="javascript:void(0);" nctype="del_desc" class="ncsc-btn mt5" style="display: none;"><i class=" icon-circle-arrow-up"></i>关闭相册</a> 
                         </div> 
                        <p id="des_demo"></p>
                    </div>
                </div>
            </dd>
        </dl>
        <div class="bottom">
            <label class="submit-border"><input type="submit" class="submit" value="提交" /></label>
        </div>
    </form>
</div>
<script type="text/javascript" src="/old/data/resource/js/common_select.js?v1.2" charset="utf-8"></script>
<script type="text/javascript" src="/old/data/resource/js/ajaxfileupload/ajaxfileupload.js?v1.2"></script>
<script type="text/javascript" src="/old/data/resource/js/jquery.Jcrop/jquery.Jcrop.js?v1.2"></script>
<link href="/old/data/resource/js/jquery.Jcrop/jquery.Jcrop.min.css?v1.2" rel="stylesheet" type="text/css" id="cssfile2" />
<script type="text/javascript">
    var SITEURL = "{$Think.config.url_base}";
    $(function () {
        $('#my_store_form').validate({
            submitHandler: function (form) {
                ajaxpost('my_store_form', '', '', 'onerror')
            },
            rules: {
            },
            messages: {
            }
        });
    });
</script>
{/block}